import axios from '@/utils/tool'
export const upPwd = (obj) => {
  return axios({
    url: '/my/updatepwd',
    method: 'patch',
    data: obj
  })
}
export const upAvator = (avatar) => {
  return axios({
    url: '/my/update/avatar',
    method: 'patch',
    data: {
      avatar
    }
  })
}
